﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FirstFloor.Reversi
{
    /// <summary>
    /// Represents the event arguments for a location event.
    /// </summary>
    public class LocationEventArgs
        : EventArgs
    {
        private Location location;

        /// <summary>
        /// Initializes a new instance of the <see cref="LocationEventArgs"/> class.
        /// </summary>
        /// <param name="location">The location.</param>
        public LocationEventArgs(Location location)
        {
            if (location == null) {
                throw new ArgumentNullException("location");
            }

            this.location = location;
        }

        /// <summary>
        /// Gets the location.
        /// </summary>
        /// <value>The location.</value>
        public Location Location
        {
            get { return this.location; }
        }
    }
}
